<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <title>Table of APIs</title>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/layout.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/panel.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/common.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/x-ie.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/options.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/test.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/apis.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/tabs.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/jsonviewer.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/search.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/enums.css?v={{version}}"/>
    <link type="text/css" rel="stylesheet" href="/internal_assets/styles/navigation.css?v={{version}}"/>
    <script src="/internal_assets/scripts/xhr.js?v={{version}}"></script>
    <script src="/internal_assets/scripts/zepto.min.js"></script>
</head>

<body>
<div id="app">
    <div class="scroll-proxy">
        <header>
            <h1>
                <span>Table of APIs</span>
                <small id="app-name"></small>
            </h1>
            <div id="tools">
                <div class="buttons">
                    <div id="search-container">
                        <input type="text" id="search-input" title="按 Esc 取消查找
按 Enter 完成查找" maxlength="64" autocomplete="off" placeholder="查找接口: 快捷键 F2/Ctrl+K"/>
                    </div>
                    <i></i>
                    <button onclick="collapseAll()">全部收起</button>
                    <button onclick="expandAll()">全部展开</button>
                    <i></i>
                    <button id="btn-export" title="导出为 Markdown">导出</button>
                    <i></i>
                    <button id="btn-show-option-panel">选项</button>
                </div>
                <div id="api-summary">
                    <span>模块:</span>
                    <span class="count1">0</span>
                    <span>路由:</span>
                    <span class="count2">0</span>
                    <span>枚举:</span>
                    <span class="count3">0</span>
                    <a href="javascript:" id="btn-show-enums-panel">查看枚举</a>
                </div>
            </div>
        </header>
        <hr/>
        <div id="ie-tip"></div>
        <div id="api-nav">
            <div class="header">
                <span>快捷导航</span>
                <small>&lt;&lt;</small>
            </div>
            <ul id="api-nav-list"></ul>
        </div>
        <div id="api-list">
            <p id="loading">正在加载 API 数据...</p>
        </div>
        <hr/>
        <footer>
            <span>Powered by</span>
            <a href="https://gitee.com/wangankeji-fe/restfx?from=dist" id="fx-name" target="_blank">restfx</a>
        </footer>
    </div>
</div>
<div id="test-panel" class="panel-container">
    <div class="panel">
        <div class="panel-heading">
            <div class="panel-heading--title">
                <span class="test-lead">接口测试</span>
                <span class="module"></span>
                <span class="name"></span>
            </div>

            <div class="panel-heading--buttons">
                <button class="btn-fullscreen">全屏</button>
                <button class="btn-close">关闭</button>
            </div>
        </div>
        <div class="panel-body">
            <div class="url-info">
                <div class="info">
                    <span class="method"></span>
                    <input class="url" type="url" maxlength="1024"/>
                </div>
                <button id="btn-send-test">发送</button>
            </div>
            <div class="addition-info"></div>
            <div class="tabs-layout request-tab">
                <ul class="tabs-header">
                    <li data-index="0" class="active">参数</li>
                    <li data-index="1">请求头</li>
                </ul>
                <div class="tabs-content">
                    <div class="tabs-item tabs-layout args-types active">
                        <ul class="args-types--header tabs-header">
                            <li data-index="0" class="active"><span>FormData</span></li>
                            <li data-index="1"><span>JSON</span></li>
                        </ul>
                        <div class="args-types--content tabs-content">
                            <table class="tabs-item args-types-item args-table">
                                <caption>
                                    参数信息
                                </caption>
                                <colgroup>
                                    <col style="width: 200px"/>
                                    <col style="width: 200px"/>
                                    <col style="width: 200px"/>
                                    <col style="width: auto"/>
                                </colgroup>
                                <thead>
                                <tr>
                                    <th>名称</th>
                                    <th>类型</th>
                                    <th>值</th>
                                    <th>描述</th>
                                </tr>
                                </thead>
                                <tbody></tbody>
                            </table>
                            <div class="tabs-item args-types-item args-json">
                                <textarea id="args-json"></textarea>
                                <div class="args-json--toolbar">
                                    <button id="json-tool--format">格式化</button>
                                    <div class="args-json--tip"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table class="tabs-item header-table">
                        <colgroup>
                            <col style="width: 40px;">
                            <col style="width: 30%">
                            <col style="width: 50%">
                            <col style="width: 60px">
                        </colgroup>
                        <thead>
                        <tr>
                            <td>启用</td>
                            <td>名称</td>
                            <td>值</td>
                            <td></td>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
            <div class="tabs-layout response">
                <ul class="tabs-header">
                    <li data-index="0" class="active">响应内容</li>
                    <li data-index="1">响应头</li>
                    <li class="response-meta">
                        <div>
                                <span>
                                    <a id="test-response--save-as" href="">另存为文件</a>
                                </span>
                            <span></span>
                            <span class="response-status">
                                    <span class="status-code"></span>
                                    <span class="status-text"></span>
                                </span>
                            <span class="response-time"></span>
                        </div>
                        <div>
                            <span class="response-type"></span>
                            <span class="response-length"></span>
                        </div>
                    </li>
                </ul>
                <div class="tabs-content">
                    <div class="tabs-item response-content active"></div>
                    <table class="tabs-item response-header">
                        <colgroup>
                            <col style="width: 300px">
                            <col style="width: auto">
                        </colgroup>
                        <thead>
                        <tr>
                            <td>名称</td>
                            <td>值</td>
                        </tr>
                        </thead>
                        <tbody></tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<div id="option-panel" class="panel-container">
    <div class="panel">
        <div class="panel-heading">
            <span>选项</span>

            <div class="panel-heading--buttons">
                <button class="btn-fullscreen">全屏</button>
                <button class="btn-close">关闭</button>
            </div>
        </div>
        <div class="panel-body">
            <div class="options">
                <div>
                    <span>URL选择策略:</span>
                    <select id="option-select-type">
                        <option value="0" selected>无</option>
                        <option value="1" selected>整个 URL</option>
                        <option value="2">从前缀开始(包含 /)</option>
                        <option value="3">从前缀开始(不含 /)</option>
                        <option value="4">仅路径(包含 /)</option>
                        <option value="5">仅路径(不含 /)</option>
                    </select>
                </div>
                <div>
                    <label for="expanded-on-load">
                        <input type="checkbox" id="expanded-on-load"/>
                        <span>加载后展开所有项</span>
                    </label>
                </div>
                <div>
                    <label for="dark-mode">
                        <input type="checkbox" id="dark-mode"/>
                        <span>启用深色模式</span>
                    </label>
                </div>
            </div>
        </div>
        <div class="option-tip">
            这些配置会保存在 <code>localStorage</code> 中
        </div>
    </div>
</div>
<div id="enum-panel" class="panel-container">
    <div class="panel">
        <div class="panel-heading">
            <span>枚举</span>
            <div class="panel-heading--buttons">
                <button class="btn-fullscreen">全屏</button>
                <button class="btn-close">关闭</button>
            </div>
        </div>
        <div class="panel-body">
            <div id="enum-list"></div>
        </div>
    </div>
</div>
<div id="btn-back-to-top" title="回到顶部"></div>
<form action="" id="export-proxy" style="display: none" target="_blank" method="post">
    <input type="hidden" name="data" id="md-content"/>
</form>
<script>
    var urlRoot = window.location.protocol + '//' + window.location.host
    var apiPrefix = window.location.pathname.substring(1)
    var API_LIST = Object.create(null)
    var list = $('#api-list')
    var testPanel = $('#test-panel')
    var optionPanel = $('#option-panel')
    var enumPanel = $('#enum-panel')
</script>
<script src="/internal_assets/scripts/renderers.js?v={{version}}"></script>
<script src="/internal_assets/scripts/navigation.js?v={{version}}"></script>
<script src="/internal_assets/scripts/index.js?v={{version}}"></script>
<script src="/internal_assets/scripts/taboverride.min.js?v={{version}}"></script>
<script src="/internal_assets/scripts/panel.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/test.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/options.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/export.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/base64.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/jsonviewer.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/search.js?v={{version}}" defer></script>
<script src="/internal_assets/scripts/enums.js?v={{version}}" defer></script>
</body>

</html>